/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.VipConsume;
import com.sasis.dao.VipConsumeDao;
import com.sasis.service.VipConsumeManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class VipConsumeManagerImpl extends BaseManager implements VipConsumeManager {
    private VipConsumeDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setVipConsumeDao(VipConsumeDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.VipConsumeManager#getVipConsumes(com.sasis.model.VipConsume)
     */
    public List getVipConsumes(final VipConsume vipConsume) {
        return dao.getVipConsumes(vipConsume);
    }

    /**
     * @see com.sasis.service.VipConsumeManager#getVipConsume(String id)
     */
    public VipConsume getVipConsume(final String id) {
        return dao.getVipConsume(new Integer(id));
    }

    /**
     * @see com.sasis.service.VipConsumeManager#saveVipConsume(VipConsume vipConsume)
     */
    public void saveVipConsume(VipConsume vipConsume) {
        dao.saveVipConsume(vipConsume);
    }

    /**
     * @see com.sasis.service.VipConsumeManager#removeVipConsume(String id)
     */
    public void removeVipConsume(VipConsume vipConsume) {
        dao.removeVipConsume( vipConsume);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
